<?php if (!defined('THINK_PATH')) exit();?><?php echo ($keshow); ?>
<link rel="stylesheet" type="text/css" href="../Public/js/plugin/Uploadify/uploadify.css" />
<script type="text/javascript" src="../Public/js/plugin/Uploadify/swfobject.js"></script>
<script type="text/javascript" src="../Public/js/plugin/Uploadify/jquery.uploadify.v2.1.4.min.js"></script>

<script type="text/javascript" src="../Public/js/module/APP/app_add.js"></script>
<div class="sendTitleDiv marginleft10">
    添加APP
</div>
<form id="frm_app" action="__URL__/appAdd" method="post">
    <input type="hidden" name="id" value="<?php echo ($app["id"]); ?>" />
    <input id="hid_type_id" type="hidden" name="type_id" value ="<?php echo ($app["type_id"]); ?>"/>
    <input id="hid_app_icon" type="hidden" name="app_icon" value="<?php echo ($app["app_icon"]); ?>"/>
    <div class="width100Percent margintop20 "style="width:780px;padding-left:10px;">
        <table class="formTable ">
            <tr>
                <td>
                    <span>标题</span>
                </td>
                <td>
                    <input type="text" name="name" class="{required:true,maxlength:128}"  value="<?php echo ($app["name"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
                <td>
                    <span>自动发布</span>
                </td>
                <td>
            <input id="chk_release" type="checkbox" name="release" <?php if($app["release"] == 1): ?>checked="checked"<?php endif; ?> value="1" />
            </td>
            </tr>
            <tr>
                <td>
                    <span>原价</span>
                </td>
                <td>
                    <input type="text" name="original"   value="<?php echo ($app["original"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
                <td>
                    <span>现价</span>
                </td>
                <td>
                    <input type="text" name="price" class="{required:true}"  value="<?php echo ($app["price"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>大小</span>
                </td>
                <td>
                    <input type="text" name="size"  class="{required:true}" value="<?php echo ($app["size"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
                <td>
                    <span>作者</span>
                </td>
                <td>
                    <input type="text" name="author"   value="<?php echo ($app["author"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>App抓取原路径</span>
                </td>
                <td colspan="3" class="textLength500">
                    <input type="text" name="download_url" value="<?php echo ($app["load_url"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>App下载路径</span>
                </td>
                <td colspan="3" class="textLength500">
                    <input type="text" name="download_url" class="{required:true}"  value="<?php echo ($app["download_url"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>App详细信息路径</span>
                </td>
                <td colspan="3" class="textLength500">
                    <input type="text" name="info_url" class="{url : true}"  value="<?php echo ($app["info_url"]); ?>" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>截图上传</span>
                </td>
                <td style="width:300px;">
                    <div class="floatLeftDiv"><input type="button" name="name" id="btn_app_icon_upload"/></div>
                    <span class="redSpan" style="display:block;line-height:30px;float:left;">*</span>

                    <div class="marginleft10 floatLeftDiv"><input type="button" id="btn_app_icon_upload_enter" class="buttonStyle" value="上传缩略图icon"/></div>
                </td>
                <td>
                    <span>选择类型</span>
                </td>
                <td >
                    <input type="button" id="btn_app_type" class="buttonStyle" value="选择类型" />
                    <span class="redSpan">*</span>
                </td>
            </tr>
            <tr>
                <td>
                    <span>内容简介</span>
                </td>
                <td colspan="3" class="textLength500">
                    <input type="text" name="content" class="{required:true}" value="<?php echo ($app["content"]); ?>"/>
                    <span class="redSpan">*</span>
                </td>
            </tr>
        </table>
        <div class="fromTableLineDiv">
            <div class="width20Percent" style="width:101px;float:left;">
                <span>详细内容</span>
            </div>
            <div class="width70Percent" style="width:528px;border-left:1px solid #957D47;float:left;">
                <div class="floatLeftDiv">
                    <textarea id="app_content" name="content_text" style="width: 519px; height: 400px; visibility: hidden;">
                <?php echo ($app["content_text"]); ?>
                    </textarea>
                </div>
                <div class="redSpan floatLeftDiv marginleft5">
                    *
                </div>
            </div>
        </div>
    </div>
    <div class="buttonRight margintop20">
        <input id="btn_notice_add_submit" type="button" class="buttonStyle" value="确定" />
        <input id="btn_notice_add_reset" type="reset" class="buttonStyle" value="重置" />
    </div>
</form>
<form id="frm_agents_manager_hidden" action="" method="post"></form>

<div id="div_app_type_dialog"></div>